const adduser=require('./adduserinfo/adduserinfo');
const modify=require('./modifyinfo/modify');
const login=require('./login/login');
const getuserinfo=require('./getUserInfo/getuserinfo');

// 云函数入口函数
exports.main = async (event, context) => {
  switch (event.type) {
    case 'adduser':
      return await adduser.main(event, context);
    case 'modify':
      return await modify.main(event, context);
    case 'login':
      return await login.main(event, context);
    case 'getuserinfo':
      return await getuserinfo.main(event, context);
  }
};
        
